package cn.besbing.server.service.primary;

import cn.besbing.model.entities.primary.NcBasprodType;
import cn.besbing.model.entities.primary.NcBasprodTypeExample;
import cn.besbing.model.mapper.primary.NcBasprodTypeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PrimaryNcBasprodTypeServiceImpl implements NcBasprodTypeMapper {

    @Autowired(required = false)
    NcBasprodTypeMapper ncBasprodTypeMapper;

    @Override
    public long countByExample(NcBasprodTypeExample example) {
        return ncBasprodTypeMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(NcBasprodTypeExample example) {
        return ncBasprodTypeMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(String pkBasprodType) {
        return ncBasprodTypeMapper.deleteByPrimaryKey(pkBasprodType);
    }

    @Override
    public int insert(NcBasprodType record) {
        return ncBasprodTypeMapper.insert(record);
    }

    @Override
    public int insertSelective(NcBasprodType record) {
        return ncBasprodTypeMapper.insertSelective(record);
    }

    @Override
    public List<NcBasprodType> selectByExample(NcBasprodTypeExample example) {
        return ncBasprodTypeMapper.selectByExample(example);
    }

    @Override
    public NcBasprodType selectByPrimaryKey(String pkBasprodType) {
        return ncBasprodTypeMapper.selectByPrimaryKey(pkBasprodType);
    }

    @Override
    public int updateByExampleSelective(NcBasprodType record, NcBasprodTypeExample example) {
        return ncBasprodTypeMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExample(NcBasprodType record, NcBasprodTypeExample example) {
        return ncBasprodTypeMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(NcBasprodType record) {
        return ncBasprodTypeMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(NcBasprodType record) {
        return ncBasprodTypeMapper.updateByPrimaryKey(record);
    }
}
